package com.bruce.pattern.structural.bridge;

import lombok.extern.slf4j.Slf4j;

/**
 * Created by bruce on 2018/11/6 21:42
 */
@Slf4j
public class ABCBank extends Bank {

    public ABCBank(Account account) {
        super(account);
    }

    @Override
    public Account open() {
        log.info("打开中国农业银行账号");
        account.open();
        return super.getAccount();
    }
}
